package com.ama.controller;


import com.ama.model.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RESTFullController {
    @RequestMapping("/boot/RESTFull/{id}")
    public User RestFullGetUser(@PathVariable("id") Integer id){
        User user = new User();
        user.setId(id);
        user.setName("RestFull");
        user.setPassword("123321");
        return user;
    }
}
